package com.codeZ.FactoryPattern.simpleFactory.service.impl;

import com.codeZ.FactoryPattern.entity.AwardInfo;
import com.codeZ.FactoryPattern.entity.ResponseResult;
import com.codeZ.FactoryPattern.simpleFactory.service.IFreeGoods;

/**
 * 优酷会员服务
 *
 * @author codeZhang
 * @Date 2024/7/31 17:52
 */
public class YouKuMemberFreeGoodsService implements IFreeGoods {
    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {

        String phone = awardInfo.getExtMap().get("phone");
        System.out.println("发放优酷会员成功 ,绑定手机号: " + phone);
        return new ResponseResult("200","优酷会员发放成功!","SUCCESS");
    }
}
